package cn.agiledata.bank.audit.service;

import cn.agiledata.bank.audit.exception.AuditException;
import cn.agiledata.bank.hibernateBean.AuditGroup;
import cn.agiledata.bank.hibernateBean.AuditStep;

public interface AuditStepService {

    public AuditStep[] appendAuditStep(Long auditorId, String name,
            AuditGroup auditGroup, AuditStep[] auditSteps)
            throws AuditException;

    public AuditStep[] removeAuditStep(AuditStep[] auditSteps, int level);

    public void amendAuditStep(Long auditorId, String name,
            AuditGroup auditGroup, AuditStep[] auditSteps, int level)
            throws AuditException;

    public AuditStep getAuditStepByLevel(AuditStep[] auditSteps, int level);
    
}